package com.cisdi.info.simple.dao.organization;

import com.cisdi.info.simple.dto.base.PageDTO;
import com.cisdi.info.simple.entity.organization.TestEmployee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
@Component(value = "testEmployeeDao")
public interface TestEmployeeDao {

    public List<TestEmployee> findTestEmployees(PageDTO pageDTO);

    public List<TestEmployee> findAllTestEmployees();

    public List<TestEmployee> findAllTestEmployeesWithIdName();

    public List<TestEmployee> findTestEmployeesWithIdNameByName(String testEmployeeName);

    public TestEmployee findTestEmployeesWithIdNameById(Long testEmployeeId);

    public Long findTestEmployeeTotalCount(PageDTO pageDTO);

    public TestEmployee findTestEmployee(@Param("testEmployeeId") Long testEmployeeId);

    //所有外键的Name都以加载
    public TestEmployee findTestEmployeeWithForeignName(@Param("testEmployeeId") Long testEmployeeId);

    public Integer saveTestEmployee(TestEmployee testEmployee);

    public Integer updateTestEmployee(TestEmployee testEmployee);

    public Integer deleteTestEmployee(@Param("testEmployeeId") Long testEmployeeId);
}
